﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cspl.Calculator.Lib;
using Cspl.Calculator.Lib.Model;

namespace Cspl.Clculator.Main
{
   public class Program
    {
        public static void Main(string[] args)
        {
            MainCalculator calculator = new MainCalculator();
            CalModel data1 = new CalModel();
            CalModel data2 = new CalModel(CalOperation.Div);

            data1.IntegerValue1 = 20;
            data1.IntegerValue2 = 14;
            data1.Operation = CalOperation.Div;

            calculator.Data = data1;

            int result = 0;

            try
            {
                result = calculator.Calculate();
            }
            catch (Exception ex)
            {
                Console.WriteLine("An exeption occured : " + ex.Message);
            }
        }
    }
}
